package com.wenhao.beike;

import java.util.Scanner;

/**
 * @author Wenhao Tong
 * @create 2021-09-03 18:32
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int T = scanner.nextInt();
        for (int i = 0;i < T;i++) {
            int n = scanner.nextInt();
            System.out.println((n + 1) / 2);
        }
    }
}
